<!--
 * @Descripttion: 
 * @version: 
 * @Author: wtzhang
 * @Date: 2021-09-23 09:22:36
 * @LastEditors: wtzhang
 * @LastEditTime: 2021-09-23 09:41:26
-->
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<style>
  div {
    height: 100px;
  }
  #parent {
    /* 表格的单元格的宽度会自动分配 */
    display: table;
    table-layout: fixed;
    width: 100%;
  }
  #left, #center, #right {
    display: table-cell;
  }
  #left, #center {
    width: 300px;
  }
  #left {
    background-color: blueviolet;
  }
  #center {
    background-color: cadetblue;
  }
  #right {
    background-color: coral;
  }
</style>
<body>
  <div id="parent">
    <div id="left"></div>
    <div id="center"></div>
    <div id="right"></div>
  </div>
</body>
</html>